package cn.t.user.event;

import cn.t.enums.user.UpdateEventTypeEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;


/**
 * @author l
 */
@Getter
public class UserQueryUpdateEvent extends ApplicationEvent {

    public UserQueryUpdateEvent(Object source, String operator, Long userId, UpdateEventTypeEnum passportChanged, UpdateEventTypeEnum participantChanged, UpdateEventTypeEnum individualChanged) {
        super(source);
        this.userId = userId;
        this.operator = operator;
        this.participantChanged = participantChanged;
        this.individualChanged = individualChanged;
        this.passportChanged = passportChanged;
    }

    private final Long userId;

    private final String operator;

    private final UpdateEventTypeEnum passportChanged;

    private final UpdateEventTypeEnum participantChanged;

    private final UpdateEventTypeEnum individualChanged;

}

